<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/14
  Time: 20:35
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="../jquery-3.3.1.min.js"></script>
<html>
<head>
    <title>咨询数据</title>
</head>
<body>
<div align = "center" >
    <h2>未回答</h2>
    <c:if test = "${not empty Index}" >
        <c:forEach items="${Index}" var="Index" varStatus="s">
                <hr color="black" width="30%" size="3" align="center"/>
                    ${Index.id}.<br><br>
                ${Index.askperson}<br><br>
                    ${Index.ask}
                <hr color="black" width="30%" size="3" align="center"/>
        </c:forEach>
    </c:if >

                <h2>已回答:</h2>
    <c:if test = "${not empty notresp}" >
        <c:forEach items="${notresp}" var="notresp" varStatus="s">
            <hr color="black" width="30%" size="3" align="center"/>
            ${notresp.id}.<br><br>
            ${notresp.ask}<br>
            回答：<br><br>
            ${notresp.anstext}<br><br>
            <hr color="black" width="30%" size="3" align="center"/>
        </c:forEach>
    </c:if >

    <form action="/user" method="post">
        <input type="submit" value="返回主页">
    </form>
</div>
</body>
</html>
